<?php
$cfg_file = "./glog_cfg.ini";
$configs = parse_ini_file($cfg_file);
$dlwz_tb = $configs['dlwz_tb'] . "_" . date("Ymd");
$dlwz_create = sprintf($configs['dlwz_create'], $dlwz_tb);
$error_file = $configs['error_file'];


$db = new mysqli($configs['host'], $configs['user'], $configs['password'], $configs['database'], $configs['port']);
if ($db->connect_errno)
{
    print_r(0, '10005', "连接数据库失败 ". $db->connect_error);
}

$result = $db->query("select *from wooolm2_dlwz_glog_20201127 limit 2;");
//print_r($result->fetch_all());
print_r("----------------\n");
//print_r(mysqli_fetch_all($result, MYSQLI_ASSOC));
print_r(mysqli_fetch_all($result, MYSQLI_NUM));
?>
